<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <base href="#{request.contextPath}/" />
        <title><h:outputText value="Erro" /></title>
        <link rel="stylesheet" type="text/css" href="css/erroautenticacao.css" />
    </h:head>
    <h:body>
        <p:panel id="panelBody" >
            <p:panelGrid columns="2" id="panelErro" >
                <p:panel id="title" >
                    <p:graphicImage value="css/img/accessdenied.png" id="aviso" alt="Atenção"/>
                </p:panel>
                <p:panel id="text" >
                    <h:outputLabel value="AVISO!" id="atencao"/> <br />
                    <h:outputLabel value="A página que você tentou acessar requer autenticação." id="msg" styleClass="msg"/>
                    <br />
                    <h:outputLabel value="Por favor faça o login para acessa-la!" id="msg1" styleClass="msg"/>
                </p:panel>
            </p:panelGrid>
            <p:panel id="panelLogin" >
                <h:outputLabel value="Sign into Society" />
                <br /><br />
                <form action="j_spring_security_check" method="post" >

                    <p:growl life="5000" autoUpdate="true" id="messages"/>
                    <p:panelGrid columns="2" id="panelGridlogin">
                        <h:outputLabel for="j_username" value="Login: "/>
                        <p:inputText  id="j_username" required="true" requiredMessage="O login obrigatório"/>
                        <h:outputLabel for="j_password" value="Senha: "/>
                        <p:password id="j_password" required="true" requiredMessage="A senha obrigatória"/>
                    </p:panelGrid>
                    <br />
                    <h:commandButton id="login" type="submit" value="login" />
                    <br /><br /><br />
                    <h:link value="Inscreva-se" outcome="../cadastro.xhtml" id="linkCad"/>
                </form>
            </p:panel>
        </p:panel>
    </h:body>

</html>